//
//  SideMenuViwController.swift
//  CJXSwiftStoryboard
//
//  Created by CJX on 2016/10/20.
//  Copyright © 2016年 caijianxi. All rights reserved.
//

public extension KVSideMenu
{
    // Here define the roots identifier of side menus that must be connected from KVRootBaseSideMenuViewController
    // In Storyboard using KVCustomSegue
    
    static public let leftSideViewController   =  "LeftSideViewController"
    static public let rightSideViewController  =  "RightSideViewController"
    
   
}


//,RightSideViewControllerDelegate
class SideMenuViewController: KVRootBaseSideMenuViewController
{
    override func viewDidLoad() {
        super.viewDidLoad()
        
//        取消左侧 侧滑边框
//        leftSideMenuViewController  =  self.storyboard?.instantiateViewControllerWithIdentifier(KVSideMenu.leftSideViewController)
        
        
//        rightSideMenuViewController =  self.storyboard?.instantiateViewControllerWithIdentifier(KVSideMenu.rightSideViewController)
        let rightVC = RightSideViewController()
//        rightVC.delegate = self
        rightSideMenuViewController = rightVC
        // Set default root
        self.changeSideMenuViewControllerRoot("MainViewController")
        
        // Set freshRoot value to true/false according to your roots managment polity. By Default value is false.
        // If freshRoot value is ture then we will always create a new instance of every root viewcontroller.
        // If freshRoot value is ture then we will reuse already created root viewcontroller if exist otherwise create it.
        
        // self.freshRoot = true
        
        
        
        
    }
    

}



